﻿@model ProcessPaymentStepModel
@using PaymentHelper.PaymentFlowTemplates.Default.Models;

<div class="ph_paymentprocess">
    <ul>
        <li>
            <a @(Model.PaymentStepCurrent == PaymentStep.AddressInfo ? " class=ph_step_active" : " class=ph_step_inactive") 
               @(Model.PaymentStepCurrent != PaymentStep.Complete ? " href=" + Url.RouteUrl("DefaultTemplate.OrderInfo") : null)>
               @ViewBag.Resources["DefaultPaymentFlow.StepAddressInfo"]
            </a>
        </li>
        <li>
            <a @(Model.PaymentStepCurrent == PaymentStep.MethodPayment ? " class=ph_step_active" : " class=ph_step_inactive") 
               @(Model.PaymentStepCurrent != PaymentStep.AddressInfo && Model.PaymentStepCurrent != PaymentStep.Complete ? " href=" + Url.RouteUrl("DefaultTemplate.Methods") : null)>
               @ViewBag.Resources["DefaultPaymentFlow.StepMethod"]
            </a>
        </li>
        <li>
            <a @(Model.PaymentStepCurrent == PaymentStep.PaymentInfo ? " class=ph_step_active" : " class=ph_step_inactive") 
               @(Model.PaymentStepCurrent != PaymentStep.AddressInfo && Model.PaymentStepCurrent != PaymentStep.MethodPayment && Model.PaymentStepCurrent != PaymentStep.Complete ? " href=" + Url.RouteUrl("DefaultTemplate.PaymentInfo") : null)>
               @ViewBag.Resources["DefaultPaymentFlow.StepMethodInfo"]
            </a>
        </li>
        <li>
            <a @(Model.PaymentStepCurrent == PaymentStep.Confirm ? " class=ph_step_active" : " class=ph_step_inactive")
               @(Model.PaymentStepCurrent != PaymentStep.AddressInfo && Model.PaymentStepCurrent != PaymentStep.MethodPayment && Model.PaymentStepCurrent != PaymentStep.PaymentInfo && Model.PaymentStepCurrent != PaymentStep.Complete? " href=" + Url.RouteUrl("DefaultTemplate.Confirm") : null)>
               @ViewBag.Resources["DefaultPaymentFlow.StepConfirm"]
            </a>
        </li>
        <li>
            <a @(Model.PaymentStepCurrent == PaymentStep.Complete ? " class=ph_step_active" : " class=ph_step_inactive")>
            @ViewBag.Resources["DefaultPaymentFlow.StepComplete"]
            </a>
        </li>
    </ul>
</div>
